package com.ruoyi.web.controller.system;



import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.utils.SendMessageUtil;
import com.ruoyi.system.service.IZhcaMessageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import javax.servlet.http.HttpServletRequest;

/**
 * 消息通知Controller
 *
 * @author ruoyi
 * @date 2021-07-31
 */
@Validated
@Api(value = "消息通知控制器", tags = {"消息通知管理"})
@RequiredArgsConstructor(onConstructor_ = @Autowired)
@RestController
@RequestMapping("/system/send")
public class ZhcaSendMessageController extends BaseController {

    private final IZhcaMessageService iZhcaMessageService;

    /**
     * 查询消息通知列表
     */
    @ApiOperation("查询消息通知列表")
    //@PreAuthorize("@ss.hasPermi('system:message:list')")
    @GetMapping("/message")
    public String list(HttpServletRequest request, @RequestParam("mobile")String mobile) throws IOException {
		String str = SendMessageUtil.VerificationCode(request,mobile);
        return str;
    }


}
